<?php 
session_start();
include_once '../config.php';
$usrID=intval($_SESSION['usrID']);
$recID=intval($_GET['recID']);
$msg=$pdo->quote($_POST['msg']);
$pdo->exec("insert into chat set usrID=$usrID,recID=$recID,msg=$msg,seen=0,date=unix_timestamp()");
?>